﻿using System.Web;
using System.Web.Optimization;

namespace Superstore.Vender
{
    public class BundleConfig
    {
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            //这几个js包基本上每个页面都需要引用
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js",
                        "~/Scripts/jweixin-1.0.0.js",
                        "~/Scripts/jquery.validate*",
                        "~/Scripts/ajaxRequestHelper.js",
                        "~/Scripts/modernizr-*"
                        ));

            //不同业务相关的js包
            bundles.Add(new ScriptBundle("~/bundles/jsPackage").Include(
                        "~/Scripts/login.js",
                        "~/Scripts/storageTool.js",
                        "~/Scripts/common.js",
                        "~/Scripts/venderDialog.js",
                        "~/Scripts/addressMgr.js",
                        "~/Scripts/terminalMgr.js",
                        "~/Scripts/goodsMgr.js",
                        "~/Scripts/promotionMgr.js",
                        "~/Scripts/shoppingMgr.js",
                        "~/Scripts/userInfoMgr.js",
                        "~/Scripts/deliveryAddrMgr.js",
                        "~/Scripts/otherMgr.js",
                        "~/Scripts/orderMgr.js",
                        "~/Scripts/deliveryAddrTool.js",
                        "~/Scripts/dialog-min.js"
                        ));
            //选择城市的JS会影响默认的滚动效果 独立出来
            bundles.Add(new ScriptBundle("~/bundles/selectCityHelper").Include(
                        "~/Scripts/selectCityHelper.js"
                        ));

            bundles.Add(new StyleBundle("~/content/css/about").Include(
                "~/content/reset.css",
                "~/content/common.css",
                "~/Content/head/normalTitle.css",
                "~/content/about/about.css"));

            bundles.Add(new StyleBundle("~/Content/css/agreement").Include(
                "~/content/reset.css",
                "~/content/common.css",
                "~/Content/head/normalTitle.css",
                "~/Content/agreement/agreement.css"));

            bundles.Add(new StyleBundle("~/Content/css/buy").Include(
                "~/content/reset.css",
                "~/content/common.css",
                "~/Content/head/normalTitle.css",
                "~/content/shopping/shoppingCart.css",
                "~/content/goodsList/goodsList.css",
                "~/Content/artDialog/ui-dialog.css",
                "~/Content/buy/buy.css"));

            bundles.Add(new StyleBundle("~/Content/css/feedback").Include(
                "~/content/reset.css",
                "~/content/common.css",
                "~/Content/head/normalTitle.css",
                "~/Content/feedback/feedback.css",
                "~/Content/artDialog/ui-dialog.css"));

            bundles.Add(new StyleBundle("~/Content/css/home").Include(
                "~/content/reset.css",
                "~/content/common.css",
                "~/content/head/homeTitle.css",
                "~/content/shopping/shoppingCart.css",
                "~/content/goodsList/goodsList.css",
                "~/Content/artDialog/ui-dialog.css",
                "~/Content/home/home.css"));

            bundles.Add(new StyleBundle("~/Content/css/location").Include(
                "~/content/reset.css",
                "~/content/common.css",
                "~/Content/head/normalTitle.css",
                "~/Content/location/location.css"));

            bundles.Add(new StyleBundle("~/Content/css/login").Include(
                "~/content/reset.css",
                "~/content/common.css",
                "~/Content/head/disableTitle.css",
                "~/content/login/login.css",
                "~/Content/artDialog/ui-dialog.css"));

            bundles.Add(new StyleBundle("~/Content/css/orderInfo").Include(
                "~/content/reset.css",
                "~/content/common.css",
                "~/Content/head/normalTitle.css",
                "~/Content/artDialog/ui-dialog.css",
                "~/Content/orderInfo/orderInfo.css"));

            bundles.Add(new StyleBundle("~/Content/css/orderMgr").Include(
                "~/content/reset.css",
                "~/content/common.css",
                "~/Content/head/normalTitle.css",
                "~/content/orderMgr/orderMgr.css",
                "~/content/orderMgr/noOrder.css"));

            bundles.Add(new StyleBundle("~/Content/css/promotion").Include(
                "~/content/reset.css",
                "~/content/common.css",
                "~/Content/head/normalTitle.css",
                "~/content/shopping/shoppingCart.css",
                "~/content/goodsList/goodsList.css",
                "~/content/promotion/promotion.css"));

            bundles.Add(new StyleBundle("~/Content/css/preLogin").Include(
                "~/content/reset.css",
                "~/content/common.css",
                "~/Content/head/disableTitle.css",
                "~/Content/login/preLogin.css",
                "~/Content/artDialog/ui-dialog.css"));

            bundles.Add(new StyleBundle("~/Content/css/searchVender").Include(
                "~/content/reset.css",
                "~/content/common.css",
                "~/Content/head/normalTitle.css",
                "~/content/searchVender/searchVender.css"));

            bundles.Add(new StyleBundle("~/Content/css/userInfo").Include(
                "~/content/reset.css",
                "~/content/common.css",
                "~/Content/userInfo/userInfo.css",
                "~/Content/artDialog/ui-dialog.css",
                "~/Content/head/normalTitle.css"));
        }
    }
}
